using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using QuadAnimation.Primitives.Shapes;

namespace QuadAnimation.Primitives
{
    public class PrimitiveHelper
    {
        public static void RenderQuad(GraphicsDevice device, Quad quad)
        {
            device.DrawUserIndexedPrimitives<VertexPositionNormalTexture>(
                    PrimitiveType.TriangleList, quad.Vertices, 0, 4, quad.Indices, 0, 2);
        }
    }
}
